<%@page import="br.com.fipsi.praticassgr.banco.BaseDeDados"%>
<%@page import="br.com.fipsi.praticassgr.model.Onibus"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

			<h1>Lista de Onibus</h1>
			<table border="4" cellpadding="10">
			<tr>
			<th>Codigo</th>
			<th>Modelo</th>
			<th>Assentos</th>
			<th>Chassi</th>
			</tr>
			
			<%for(Onibus o : BaseDeDados.lista){%>
			<tr>
			<td><%= o.getCodigo()%></td>
			<td><%= o.getModeloDoVeiculo()%></td>
			<td><%= o.getQntdAssentos()%></td>
			<td><%= o.getChassi()%></td>
			</tr>
			<%} %>
			</table>
	

</body>
</html>